

using System;
using System.Collections.Generic;
using System.Text;
using DataAccessLayer;
using EntityLayer;
using DataLayer;
using System.Data;
using InfraStructureLayer;

namespace BusinessLayer
{
	public class busMultilanguageSettings:BusinessBase
	{
		public busMultilanguageSettings() : base()
		{
		}
		#region  Code Factory Generated Methods
        public void DeleteMultilanguageSettingsByMultiLanguageSettingId(entMultilanguageSettings parEntMultilanguageSettings)
        {
            DbConnector insDbConnector = new DbConnector();
            try
            {
                datMultilanguageSettings insDatMultilanguageSettings = new datMultilanguageSettings();
                insDatMultilanguageSettings.DeleteMultilanguageSettingsByMultiLanguageSettingId(parEntMultilanguageSettings, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }
        public void InsertMultilanguageSettings(entMultilanguageSettings parEntMultilanguageSettings)
        {
            datMultilanguageSettings insDatMultilanguageSettings = null;
            DbConnector insDbConnector = new DbConnector();
            try
            {
                insDatMultilanguageSettings = new datMultilanguageSettings();
                insDatMultilanguageSettings.InsertMultilanguageSettings(parEntMultilanguageSettings, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }
        public void UpdateMultilanguageSettingsByMultiLanguageSettingId(entMultilanguageSettings parEntMultilanguageSettings)
        {

            datMultilanguageSettings insDatMultilanguageSettings = null;
            DbConnector insDbConnector = new DbConnector();
            try
            {
                insDatMultilanguageSettings = new datMultilanguageSettings();
                insDatMultilanguageSettings.UpdateMultilanguageSettingsByMultiLanguageSettingId(parEntMultilanguageSettings, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }

        public void SelectMultilanguageSettingsByMultiLanguageSettingId(entMultilanguageSettings parEntMultilanguageSettings)
        {
            try
            {
                datMultilanguageSettings insDatMultilanguageSettings = new datMultilanguageSettings();
                DbConnector insDbConnector = new DbConnector();
                insDatMultilanguageSettings.SelectMultilanguageSettingsByMultiLanguageSettingId(parEntMultilanguageSettings, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
        }
		
		#endregion

        public DataTable SelectMultilanguageSettingsByLanguageIdAndPageId(entMultilanguageSettings parEntMultilanguageSettings)
        {
            try
            {
                DbConnector insDbConnector = new DbConnector();
                datMultilanguageSettings insDatMultilanguageSettings = new datMultilanguageSettings();
                return insDatMultilanguageSettings.SelectMultilanguageSettingsByLanguageIdAndPageId(parEntMultilanguageSettings, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
	}
}